package com.atguigu.day09.work;

public class Test02 {

    public static void main(String[] args) {
        Person[] arr=new Person[2];
        arr[0]=new Man();
        arr[1]=new Woman();
        for (int i=0;i<arr.length;i++){
            arr[i].pee();
        }
    }
}

